import request from '@/utils/request'

export function curCourseBaseList (params) {
  return request({
    url: '/curCourseBase/list',
    method: 'get',
    params
  })
}

export function curCourseBaseGetById (params) {
  return request({
    url: '/curCourseBase/getById',
    method: 'get',
    params
  })
}

export function curCourseBaseSave (data) {
  return request({
    url: '/curCourseBase/save',
    method: 'post',
    data
  })
}

export function curCourseBaseUpdate (data) {
  return request({
    url: '/curCourseBase/update',
    method: 'post',
    data
  })
}

export function curCourseBaseDelById (params) {
  return request({
    url: '/curCourseBase/delById',
    method: 'get',
    params
  })
}

export function curCourseTypeList (params) {
  return request({
    url: '/curCourseType/list',
    method: 'get',
    params
  })
}

export function curCourseTypeListByDeptId (params) {
  return request({
    url: '/curCourseType/listByDeptId',
    method: 'get',
    params
  })
}

export function curCourseTypeSave (data) {
  return request({
    url: '/curCourseType/save',
    method: 'post',
    data
  })
}

export function commonList (params) {
  return request({
    url: '/common/list',
    method: 'get',
    params
  })
}

export function umsDeptList (params) {
  return request({
    url: '/umsDept/list',
    method: 'get',
    params
  })
}

export function curCourseTypeGetById (params) {
  return request({
    url: '/curCourseType/getById',
    method: 'get',
    params
  })
}

export function curCourseTypeDel (params) {
  return request({
    url: '/curCourseType/del',
    method: 'get',
    params
  })
}

export function curCourseTypeUpdate (data) {
  return request({
    url: '/curCourseType/update',
    method: 'post',
    data
  })
}

export function curVideoList (params) {
  return request({
    url: '/curVideo/list',
    method: 'get',
    params
  })
}

export function curVideoDel (params) {
  return request({
    url: '/curVideo/del',
    method: 'get',
    params
  })
}

export function curVideoSave (data) {
  return request({
    url: '/curVideo/save',
    method: 'post',
    data
  })
}

export function curVideoUpdate (data) {
  return request({
    url: '/curVideo/update',
    method: 'post',
    data
  })
}

export function curVideoGetById (params) {
  return request({
    url: '/curVideo/getById',
    method: 'get',
    params
  })
}
